/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MessageHandler;

import org.openymsg.network.Session;

/**
 *
 * @author Mr Bao
 */
public class SendBuzzMessageHandler implements IMessageHandler {

    public Object Process(String message, Session session) {
        try {
            String to = message.substring(message.indexOf(":") + 1).trim();
            session.sendBuzz(to);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}
